interface EndPointAlarmResponseAlarm {
  "id": 1752741353635.986;
  "type": "doorAbnormalOpen" | "doorAbnormalVibration";
  "message": string;
  "timestamp": string;
  "date": string;
}

/**
 * 返回警报添加信息
 */
export interface EndPointAlarmResponse{
  "message": string,
  "alarm": EndPointAlarmResponseAlarm,
  "todayCount": number,
  "totalCount": number
}


interface GeneratedTypeLiteralInterface_1 {
  date: string;
  doorAbnormalOpen: number;
  doorAbnormalVibration: number;
  total: number;
}

interface GeneratedTypeLiteralInterface_2 {
  doorAbnormalOpen: number;
  doorAbnormalVibration: number;
  total: number;
}
// 每日统计接口
interface DailyStats {
  date: string;
  doorAbnormalOpen: number;
  doorAbnormalVibration: number;
  total: number;
}
/**
 * 报警统计响应接口
 */
export interface EndPointAlarmStatisticsResponse {
  today: GeneratedTypeLiteralInterface_1;
  total: GeneratedTypeLiteralInterface_2;
  dailyStats: DailyStats[];
  timestamp: string;
}




// 报警记录接口
interface AlarmRecord {
  id: number;
  type: 'doorAbnormalOpen' | 'doorAbnormalVibration';
  message: string;
  timestamp: string;
  date: string;
}
// 分页接口
interface Pagination {
  currentPage: number;
  totalPages: number;
  totalCount: number;
  hasNext: boolean;
  hasPrev: boolean;
}


/**
 * 历史记录响应接口
 */
export interface EndPointAlarmHistoryResponse {
  alarms: AlarmRecord[];
  pagination: Pagination;
  filter: string;
}